<?php echo $__env->make("template::My.views.header", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<link href="/mycms/cms/theme/My/assets/css/honor.css?<?php echo e(time()); ?>" rel="stylesheet">
</head>
<body class="bg-[#F9F9F9] font-['PingFang']" >
      <div class="container mx-auto w-full bg-white h-[50px]  flex flex-row  text-[16px] font-bold  leading-[50px]  ">
        <div  class="basis-4/12 text-center   <?php if(!$have): ?> text-[#3368FD]<?php endif; ?>" >
           <a href="<?php echo e(route('cms.honor')); ?>" ><span class="">领取中</span></a>
            <?php if(!$have): ?><center><div class=" w-[17px] h-[4px] bg-[#3368FD] rounded-[2px]  -mt-[8px]"  ></div></center><?php endif; ?>
        </div>
        <div  class="basis-4/12 text-center h-[50px]   <?php if($have=='join'): ?> text-[#3368FD]<?php endif; ?> ">
            <a href="<?php echo e(route('cms.honor')); ?>?have=join" ><span class="">已领取</span></a>
              <?php if($have=='join'): ?><center><div class=" w-[17px] h-[4px] bg-[#3368FD] rounded-[2px]  -mt-[8px]"  ></div></center><?php endif; ?>
        </div>
        <div  class="basis-4/12 text-center h-[50px]   <?php if($have=='done'): ?> text-[#3368FD]<?php endif; ?>">
             <a href="<?php echo e(route('cms.honor')); ?>?have=done" ><span class="">已结束</span></a>
           <?php if($have=='done'): ?><center><div class=" w-[17px] h-[4px] bg-[#3368FD] rounded-[2px]  -mt-[8px]"  ></div></center><?php endif; ?>
        </div>
    </div>
    
     <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
      <?php if(!$have): ?>
     <div class="container mx-auto w-11/12 bg-white  mt-5   rounded-2xl h-auto">
        <div class="rounded-t-2xl bg-cover h-[166px]  " style="background-image: url('<?php echo e($v->img); ?>')">
             <?php if(!$v->iscomment): ?><div class="w-full  h-[166px]  bg-black opacity-50  p-20 rounded-t-2xl" onclick="model_show(<?php echo e($v->id); ?>)"><center><img src="/mycms/cms/theme/My/assets/img/25.png" class="w-10 h-10" /></center></div><?php endif; ?>
        </div>
        <div class="h-auto  px-[16px] py-[23px] flex flex-row " >
            <div class=" basis-10/12 ">
                <h2 class=" text-[#0B0B0B] font-['PingFang'] font-bold text-[14.6px]"><?php echo e($v->title); ?></h2>
                <p class="text-[#666666] font-['PingFang'] font-medium text-[12px]" ><?php echo e($v->description); ?></p>  
            </div>
            <div class=" font-['PingFang']   font-bold text-2xl text-[#FF8E00]  basis-2/12" > 
                <?php if(!$v->iscomment): ?>
                <button onclick="model_show(<?php echo e($v->id); ?>)"  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">领取</button>
                <?php else: ?>
                <button onclick="tozheng(<?php echo e($v->id); ?>)"  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">领取</button>
                <?php endif; ?>
            </div> 
        </div>
    </div>
     <?php endif; ?>
     <?php if($have=='join'): ?>
              <?php if($v->article->status): ?>
       <div class="container mx-auto w-11/12 bg-white  mt-5   rounded-2xl h-auto">
        <div class="rounded-t-2xl bg-cover h-[166px]  " style="background-image: url('<?php echo e($v->article->img); ?>')">
            <!--<div class="w-full  h-[166px]  bg-black opacity-50  p-20 rounded-t-2xl" onclick="model_show()"><center><img src="/mycms/cms/theme/My/assets/img/25.png" class="w-10 h-10" /></center></div>-->
        </div>
        <div class="h-auto  px-[16px] py-[23px] flex flex-row " >
             <div class=" basis-10/12 ">
                    <h2 class=" text-[#0B0B0B] font-['PingFang'] font-bold text-[14.6px]"><?php echo e($v->article->title); ?></h2>
                    <p class="text-[#666666] font-['PingFang'] font-medium text-[12px]" ><?php echo e($v->article->description); ?></p>  
                </div>
                <div class=" font-['PingFang']   font-bold text-2xl text-[#FF8E00]  basis-2/12" > 
                 
                    <button onclick="tozheng(<?php echo e($v->article->id); ?>)"  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">领取</button>
               
                </div> 
            </div>
        </div>
        <?php endif; ?>
     <?php endif; ?>
     <?php if($have=='done'): ?>
            <div class="container mx-auto w-11/12 bg-white  mt-5   rounded-2xl h-auto">
        <div class="rounded-t-2xl bg-cover h-[166px]  " style="background-image: url('<?php echo e($v->img); ?>')">
             <?php if(!$v->iscomment): ?><div class="w-full  h-[166px]  bg-black opacity-50  p-20 rounded-t-2xl" onclick="model_show(<?php echo e($v->id); ?>)"><center><img src="/mycms/cms/theme/My/assets/img/25.png" class="w-10 h-10" /></center></div><?php endif; ?>
        </div>
        <div class="h-auto  px-[16px] py-[23px] flex flex-row " >
            <div class=" basis-10/12 ">
                <h2 class=" text-[#0B0B0B] font-['PingFang'] font-bold text-[14.6px]"><?php echo e($v->title); ?></h2>
                <p class="text-[#666666] font-['PingFang'] font-medium text-[12px]" ><?php echo e($v->description); ?></p>  
            </div>
            <div class=" font-['PingFang']   font-bold text-2xl text-[#FF8E00]  basis-2/12" > 
                <?php if(!$v->iscomment): ?>
                <button onclick="model_show(<?php echo e($v->id); ?>)"  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">领取</button>
                <?php else: ?>
                <button onclick="tozheng(<?php echo e($v->id); ?>)"  class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[86px]  h-[34px]  text-white font-bold text-[14.6px]">领取</button>
                <?php endif; ?>
            </div> 
        </div>
    </div>
     <?php endif; ?>
     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
     <br> <br> <br>  
    <div class="container mx-auto bg-white w-full h-16 flex flex-row   left-0 right-0 bottom-0 fixed  ">
        <div class="basis-4/12 text-center bg-white  pt-1">
            <a href="<?php echo e(url('/')); ?>" ><div class="content-center "><center><img src="/mycms/cms/theme/My/assets/img/41.png" class="h-[33px] w-[33px]  justify-items-center" ></center></div>
            <p  class="text-center font-medium  text-[11px]  text-[#333333]] font-['PingFang']">首页</p></a>
        </div>
        <div class="basis-4/12  bg-white  pt-1 ">
            <div class="content-center"><center><img src="/mycms/cms/theme/My/assets/img/38.png" class="h-[33px] w-[33px]  justify-items-center"></center></div>
            <p  class="text-center  font-medium  text-[11px] text-[#3368FD] font-['PingFang']">荣誉</p>
        </div>
        <div class="basis-4/12 bg-white  pt-1">
             <a href="<?php echo e(route('user.index')); ?>" ><div class="content-center"><center><img src="/mycms/cms/theme/My/assets/img/37.png" class="h-[33px] w-[33px] justify-items-center"></center></div>
            <p class="text-center font-medium text-[11px] font-['PingFang']  text-[#333333">我的</p></a>
        </div>
    </div>

   <div id='model' class="h-screen flex items-center justify-center bg-black bg-opacity-50 z-50    left-0 right-0 top-0 fixed  hidden ">
        <div class="container mx-auto bg-white rounded-[33px] shadow-lg modal  w-[304px]  h-[305px] relative" >
            <div class="flex flex-row items-end justify-end h-[33px]" >
                <div class="w-[25px] h-[25px] mr-5 text-right"  onclick="model_hidden()"><img src="/mycms/cms/theme/My/assets/img/47.png" class="w-[25px] h-[25px]"></div>
            </div>
            <div class="flex flex-row items-center justify-center " >
                <div class="items-center justify-center"><center><img src="/mycms/cms/theme/My/assets/img/24.png" class="w-[62px] h-[62px] "></center></div>
            </div>
            <div class="text-black  text-center mt-[28px]">
                <p class="text-[18px] font-bold text-[#222222] ">您还未报名此活动哦</p>
                <p class="text-[14px] text-[#333333]">需要报名活动后再领取证书</p>
            </div>
            <div class="flex flex-row items-center justify-center mt-[75px] ">
                <button  onclick="tourl()" class="bg-[#3368FD]   rounded-full shadow-xl shadow-blue-400/30 w-[142px]  h-[45px]  text-white font-bold text-[19px] leading-[19px]">去报名</button>
            </div>
           
        </div>
    </div>
<script>
var id=0;
function model_show($id){
        id=$id;
        var mobile = $('#model').removeClass('hidden');
        
}
function model_hidden(){
        var mobile = $('#model').addClass('hidden');
        
}
function tourl(){
        if(id!=0){
         location.href = '/single/'+id;     
        }
}

function tozheng(fid){
       
         location.href = '/zheng/'+fid;     
     
}
</script>
<?php echo $__env->make("template::My.views._footer", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /www/wwwroot/mycms/Template/My/views/honor.blade.php ENDPATH**/ ?>